-- GENERATED SPELL FOR [Volgur] --


function spell0_30483(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(49758,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30483', 609, 1)
end

function spell1_30483(pUnit, Event) --@Chop,n/a--
pUnit:FullCastSpellOnTarget(43410,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30483', 5260, 1)
end

function spell2_30483(pUnit, Event) --@Demoralize,n/a--
pUnit:FullCastSpellOnTarget(23262,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30483', 30259, 1)
end

function spell3_30483(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15578,pUnit)
pUnit:RegisterEvent('Sorts_30483', 623, 1)
end

function spell4_30483(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(49807,pUnit)
pUnit:RegisterEvent('Sorts_30483', 2000, 1)
end

function Sorts_30483(pUnit, Event)
local choix_sorts_30483 = math.random(0, 4)
if choix_sorts_30483 == 0 then
pUnit:RegisterEvent('spell0_30483', 1, 1)
end
if choix_sorts_30483 == 1 then
pUnit:RegisterEvent('spell1_30483', 1, 1)
end
if choix_sorts_30483 == 2 then
pUnit:RegisterEvent('spell2_30483', 1, 1)
end
if choix_sorts_30483 == 3 then
pUnit:RegisterEvent('spell3_30483', 1, 1)
end
if choix_sorts_30483 == 4 then
pUnit:RegisterEvent('spell4_30483', 1, 1)
end
end

function mob30483_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30483', math.random(1500, 3000), 1)
end

function mob30483_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30483_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30483_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30483, 1, 'mob30483_Action')
RegisterUnitEvent(30483, 2, 'mob30483_Leave')
RegisterUnitEvent(30483, 3, 'mob30483_Kill')
RegisterUnitEvent(30483, 4, 'mob30483_Die')
